package com.yanjingzheng.entity;

/**
 * @Author Yenchingcheng
 * @Date 2023/10/27 10:10
 * @Description 股票购入类
 **/
public class BuyStock implements Order{

    private Stock stock;

    public BuyStock(Stock stock) {
        this.stock = stock;
    }

    @Override
    public void execute() {
        stock.buy();
    }
}
